The phrase "to knit a hat" means to make a hat by using two needles and yarn to create loops and stitches.